package com.hsnn.medstgmini.pro.plan.model;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;


import com.hsnn.medstgmini.pro.project.model.BidProject;
/**
 *@category 医疗机构采购计划实体类
 * @author 韩守松
 * @date 2015年6月16日
 */
@Entity
@Table(name = "bid_hospplan")
public class BidHospplan implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 510883899583968750L;
	private String projPlanId;
	private String projId;
	private String drugId;
	private String hospId;
	private String healbureaId;
	
	@Column(name = "healburea_id", length = 36)
	public String getHealbureaId() {
		return healbureaId;
	}

	public void setHealbureaId(String healbureaId) {
		this.healbureaId = healbureaId;
	}

	private Integer lastyProAmt;
	private Integer planProAmt;
	private String proMethod;
	private String qualityRequires;
	private Date planSubmitDatetime;
	private String planSubmitUser;
	private String areaId;
	
	@Column(name = "area_id", length = 36)
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	private BidProject bidProject;//采购项目实体类对象
	
	public BidHospplan(){
		
	}
	
	// Constructors
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
	@JoinColumn(name="proj_id")
	public BidProject getBidProject() {
		return bidProject;
	}
	
	public void setBidProject(BidProject bidProject) {
		this.bidProject = bidProject;
	}

	

	/** full constructor */
	public BidHospplan(String projId, String drugId, String hospId,
			Integer lastyProAmt, Integer planProAmt, String proMethod,
			String qualityRequires, Date planSubmitDatetime,
			String planSubmitUser) {
		this.projId = projId;
		this.drugId = drugId;
		this.hospId = hospId;
		this.lastyProAmt = lastyProAmt;
		this.planProAmt = planProAmt;
		this.proMethod = proMethod;
		this.qualityRequires = qualityRequires;
		this.planSubmitDatetime = planSubmitDatetime;
		this.planSubmitUser = planSubmitUser;
	}

	// Property accessors
	@Id
	@Column(name = "proj_plan_id", unique = true, nullable = false, length = 36)
	public String getProjPlanId() {
		return this.projPlanId;
	}

	public void setProjPlanId(String projPlanId) {
		this.projPlanId = projPlanId;
	}

	@Column(name = "proj_id",insertable=false,updatable=false, length = 36)
	public String getProjId() {
		return this.projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}

	@Column(name = "drug_id", length = 36)
	public String getDrugId() {
		return this.drugId;
	}

	public void setDrugId(String drugId) {
		this.drugId = drugId;
	}

	@Column(name = "hosp_id", length = 36)
	public String getHospId() {
		return this.hospId;
	}

	public void setHospId(String hospId) {
		this.hospId = hospId;
	}

	@Column(name = "lasty_pro_amt")
	public Integer getLastyProAmt() {
		return this.lastyProAmt;
	}

	public void setLastyProAmt(Integer lastyProAmt) {
		this.lastyProAmt = lastyProAmt;
	}

	@Column(name = "plan_pro_amt")
	public Integer getPlanProAmt() {
		return this.planProAmt;
	}

	public void setPlanProAmt(Integer planProAmt) {
		this.planProAmt = planProAmt;
	}

	@Column(name = "pro_method", length = 36)
	public String getProMethod() {
		return this.proMethod;
	}

	public void setProMethod(String proMethod) {
		this.proMethod = proMethod;
	}

	@Column(name = "quality_requires", length = 512)
	public String getQualityRequires() {
		return this.qualityRequires;
	}

	public void setQualityRequires(String qualityRequires) {
		this.qualityRequires = qualityRequires;
	}

	@Column(name = "plan_submit_datetime", length = 19)
	public Date getPlanSubmitDatetime() {
		return this.planSubmitDatetime;
	}

	public void setPlanSubmitDatetime(Date planSubmitDatetime) {
		this.planSubmitDatetime = planSubmitDatetime;
	}

	@Column(name = "plan_submit_user", length = 36)
	public String getPlanSubmitUser() {
		return this.planSubmitUser;
	}

	public void setPlanSubmitUser(String planSubmitUser) {
		this.planSubmitUser = planSubmitUser;
	}

}